package com.jorado.apollo;

public class ApolloClientOptions {
    private String portalUrl;
    private String token;
    private String appId;
    private String env;
    private String clusterName;
    private String userName;
    private String password;

    public String getPortalUrl() {
        return portalUrl;
    }

    public void setPortalUrl(String portalUrl) {
        this.portalUrl = portalUrl;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getEnv() {
        return env;
    }

    public void setEnv(String env) {
        this.env = env;
    }

    public String getClusterName() {
        return clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"portalUrl\":\"")
                .append(portalUrl).append('\"');
        sb.append(",\"token\":\"")
                .append(token).append('\"');
        sb.append(",\"appId\":\"")
                .append(appId).append('\"');
        sb.append(",\"env\":\"")
                .append(env).append('\"');
        sb.append(",\"clusterName\":\"")
                .append(clusterName).append('\"');
        sb.append(",\"userName\":\"")
                .append(userName).append('\"');
        sb.append('}');
        return sb.toString();
    }
}